package com.woniuxy.woniufp.system.mapper;

import com.woniuxy.woniufp.system.entity.UserCard;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface UserCardMapper extends Mapper<UserCard> {
    @Select("select * from u_user_card where phone = #{value}")
    UserCard selectUserCardByPhonr(String phone);

    @Update("update u_user_card set bank_no = #{bankNo},bank_title=#{bankTitle} where user_id = #{userid}")
    void updateBankInfoByUserId(@Param("userid") Long userid, @Param("bankNo") String bnakNo, @Param("bankTitle") String bankTitle);
}